package com.itheima.d4_print_stream;

import javax.management.MBeanAttributeInfo;
import java.io.FileNotFoundException;
import java.io.PrintStream;

/*
    目标：掌握打印流：PrintStream/PrintWriter的用法。
 */
public class PrintTest1 {
    public static void main(String[] args) throws Exception {
        PrintStream ps = new PrintStream("eee.txt");
        ps.println("abc");
        ps.println(true);
        ps.println(123);
        ps.print(456);
        ps.print("def");
        ps.close();
    }
}
